/*******************************************************************************
 * Copyright (c) 2009 Brian Edginton and Aaron Getz.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     Brian Edginton - initial API and implementation
 *     Aaron Getz
 *******************************************************************************/

package org.eclipse.mylyn.internal.eplanner.core;

import java.io.InputStream;

import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.mylyn.tasks.core.ITask;
import org.eclipse.mylyn.tasks.core.TaskRepository;
import org.eclipse.mylyn.tasks.core.data.AbstractTaskAttachmentHandler;
import org.eclipse.mylyn.tasks.core.data.AbstractTaskAttachmentSource;
import org.eclipse.mylyn.tasks.core.data.TaskAttribute;

/**
 * 
 * @author edge
 *
 */
public class EPlannerTaskAttachmentHandler extends AbstractTaskAttachmentHandler {
	
	@SuppressWarnings("unused")
	private final EPlannerRepositoryConnector connector;
	
	public EPlannerTaskAttachmentHandler(EPlannerRepositoryConnector connector ) {
		this.connector = connector;
	}

	@Override
	public InputStream getContent(TaskRepository repository, ITask task, TaskAttribute attachmentAttribute,
			IProgressMonitor monitor) throws CoreException {
				return null;
		// TODO: when we get content from EP
	}
	
	@Override
	public boolean canGetContent(TaskRepository repository, ITask task) {
		// ignore
		return false;
	}
	
	@Override
	public boolean canPostContent(TaskRepository repository, ITask task) {
		// ignore
		return false;
	}

	@Override
	public void postContent(TaskRepository repository, ITask task,
			AbstractTaskAttachmentSource source, String comment,
			TaskAttribute attachmentAttribute, IProgressMonitor monitor)
			throws CoreException {
		// TODO Auto-generated method stub
		
	}
}
